
package system.base;

import framework.core.*;

/*
	Author    :chengbiao.he
	CreateTime:2008-02-03 14:56:55
*/
public class WarehouseCategorySearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_warehouse_name = "" ; // all

	private String m_category_code = "" ; // all

	private String m_category_name = "" ; // all

	private String m_parent_category_code = "" ; // all

	private String m_status = "" ; // all

	private String m_create_user_id = "" ; // all

	private String m_create_user = "" ; // all

	private String m_create_time = "" ; // all

	private String m_last_update_user_id = "" ; // all

	private String m_last_update_user = "" ; // all

	private String m_last_update_time = "" ; // all
		

public WarehouseCategorySearchEvent() 
{
	super();
	
	setOrderField(WarehouseCategory.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getWarehouseName()
	{
		return m_warehouse_name ;
	}
	public void setWarehouseName(String v)
	{
		m_warehouse_name = v;
	}

	public String getCategoryCode()
	{
		return m_category_code ;
	}
	public void setCategoryCode(String v)
	{
		m_category_code = v;
	}

	public String getCategoryName()
	{
		return m_category_name ;
	}
	public void setCategoryName(String v)
	{
		m_category_name = v;
	}

	public String getParentCategoryCode()
	{
		return m_parent_category_code ;
	}
	public void setParentCategoryCode(String v)
	{
		m_parent_category_code = v;
	}

	public String getStatus()
	{
		return m_status ;
	}
	public void setStatus(String v)
	{
		m_status = v;
	}

	public String getCreateUserId()
	{
		return m_create_user_id ;
	}
	public void setCreateUserId(String v)
	{
		m_create_user_id = v;
	}

	public String getCreateUser()
	{
		return m_create_user ;
	}
	public void setCreateUser(String v)
	{
		m_create_user = v;
	}

	public String getCreateTime()
	{
		return m_create_time ;
	}
	public void setCreateTime(String v)
	{
		m_create_time = v;
	}

	public String getLastUpdateUserId()
	{
		return m_last_update_user_id ;
	}
	public void setLastUpdateUserId(String v)
	{
		m_last_update_user_id = v;
	}

	public String getLastUpdateUser()
	{
		return m_last_update_user ;
	}
	public void setLastUpdateUser(String v)
	{
		m_last_update_user = v;
	}

	public String getLastUpdateTime()
	{
		return m_last_update_time ;
	}
	public void setLastUpdateTime(String v)
	{
		m_last_update_time = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewWarehouseName() throws Exception
	{
		return Value.view(getWarehouseName());
	}

	public String viewCategoryCode() throws Exception
	{
		return Value.view(getCategoryCode());
	}

	public String viewCategoryName() throws Exception
	{
		return Value.view(getCategoryName());
	}

	public String viewParentCategoryCode() throws Exception
	{
		return Value.view(getParentCategoryCode());
	}

	public String viewStatus() throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId() throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser() throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId() throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser() throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(WarehouseCategory.ID,getId()));

	c.add(getCondition(WarehouseCategory.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(WarehouseCategory.WAREHOUSE_NAME,getWarehouseName()));

	c.add(getCondition(WarehouseCategory.CATEGORY_CODE,getCategoryCode()));

	c.add(getCondition(WarehouseCategory.CATEGORY_NAME,getCategoryName()));

	c.add(getCondition(WarehouseCategory.PARENT_CATEGORY_CODE,getParentCategoryCode()));

	c.add(getCondition(WarehouseCategory.STATUS,getStatus()));

	c.add(getCondition(WarehouseCategory.CREATE_USER_ID,getCreateUserId()));

	c.add(getCondition(WarehouseCategory.CREATE_USER,getCreateUser()));

	c.add(getCondition(WarehouseCategory.CREATE_TIME,getCreateTime()));

	c.add(getCondition(WarehouseCategory.LAST_UPDATE_USER_ID,getLastUpdateUserId()));

	c.add(getCondition(WarehouseCategory.LAST_UPDATE_USER,getLastUpdateUser()));

	c.add(getCondition(WarehouseCategory.LAST_UPDATE_TIME,getLastUpdateTime()));
		
	c.add(WarehouseCategory.WAREHOUSE_CODE,Conditions.LIKE,getWarehouseCodeUser()+"%");
			
		return c ;
	}
	
//add by chengbiao.he start
   
    private String[] m_warehouse_codes = null;
    public String[] getWarehouseCodes()
    {
        return m_warehouse_codes ;
    }
    public void setWarehouseCodes(String[] v)
    {
        m_warehouse_codes = v;
    }   
   
//add by chengbiao.he end
    
    //add by Jackey start    
    private String m_warehouse_code_user = "" ; // all
    public String getWarehouseCodeUser()
    {
        return m_warehouse_code_user ;
    }
    public void setWarehouseCodeUser(String v)
    {
        m_warehouse_code_user = v;
    }
    public String viewWarehouseCodeUser() throws Exception
    {
        return Value.view(getWarehouseCodeUser());
    }
  //add by Jackey end   
}
